package com.bkaka.service;

import com.bkaka.entity.ExamPaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by maxiaoqiang on 2018/9/19.
 */
public interface ExamPaperServer {

    List<ExamPaper> list(@Param("userId") Integer userId);

    List<ExamPaper> grade(@Param("userId") Integer userId);

    ExamPaper findById(@Param("paperId") Integer paperId);

    List<ExamPaper> findAll(@Param("userId") Integer userId, @Param("paperId") Integer paperId, @Param("subjectId") Integer subjectId);

    void create(ExamPaper paper);

    void update(ExamPaper paper);

    List<ExamPaper> countInit(@Param("userId") Integer userId);
}
